# 根据给定的函数画出曲线

from random import randint
import math

def curve(x, a, b, n):
    # y = ax^n + b
    return a * x ** n + b
    # return math.sin(x)

def make_points(a, b, n=2, times=100):
    dict = {}
    for i in range(times):
        dict[i] = curve(i, a, b, n)
        # dict[i] = randint(a,b)
    return dict


if __name__ == '__main__':
    print(make_points(2, 5, 2))
